package com.cyp.blogsystem.controller;

import com.cyp.blogsystem.model.request.LoginRequest;
import com.cyp.blogsystem.model.request.RegisterRequest;
import com.cyp.blogsystem.model.request.UpdateProfileRequest;
import com.cyp.blogsystem.pojo.Result;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("/api/v1/users")
@RequiredArgsConstructor
public class UserController {

    /**
     * 用户注册
     */
    @PostMapping("/register")
    public Result<?> register(@RequestBody RegisterRequest request) {
        // TODO: 实现注册逻辑
        return Result.success(null);
    }

    /**
     * 用户登录
     */
    @PostMapping("/login")
    public Result<?> login(@RequestBody LoginRequest request) {
        // TODO: 实现登录逻辑
        return Result.success(null);
    }

    /**
     * 获取当前用户信息
     */
    @GetMapping("/current")
    public Result<?> getCurrentUser() {
        // TODO: 实现获取当前用户信息逻辑
        return Result.success(null);
    }

    /**
     * 修改用户信息
     */
    @PutMapping("/profile")
    public Result<?> updateProfile(@RequestBody UpdateProfileRequest request) {
        // TODO: 实现修改用户信息逻辑
        return Result.success(null);
    }
}